<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_7a2a2377-28b0-41b2-9794-0a878d2689c9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-03</startDate>
            <endDate>2025-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_37c0e96a-49f6-4bae-abf4-7398041c3636">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_2c3acb08-82bd-49cf-ba95-0d65675e6f69">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_e6dbd7c8-fb6d-46ea-a216-1b3f52c7561a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_72ef70b2-de72-4ed4-9bf2-f784e9870ce5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_0fc55171-185c-4bff-a1e7-74f6beac90e8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_f941736a-3fd5-422a-b9c7-0c57cbd6c85d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_d514b33a-20e1-4c9f-ad0e-3accfac91e83">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_df4b0dd2-d2ca-4a36-810c-9bfd31d2a571">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_2291d13e-4f54-4528-b8ce-c8b7d6d2776c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      id="F_3d2eef79-d712-4650-8517-525f77341956">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;12,519,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_7a2a2377-28b0-41b2-9794-0a878d2689c9"
      decimals="0"
      id="F_68a6b894-cad3-44d5-aaeb-e7a630fbd641"
      unitRef="U_USD">12519000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
