<?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_d34f81a7-0d19-4ed4-8863-61f488260e9b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-25</startDate>
            <endDate>2026-02-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_1466263a-e51b-4775-b440-79e29e0049c5">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_b21a1277-d2c8-4ca3-8804-5506a1b03011">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_d7dcedf1-2e63-4f9a-98fb-1ff5d9ddf318">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_465d7f99-2973-4cec-8412-2d8b32c72dad">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_ddb15f60-5705-4336-beb9-1e8f7daac147">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_3aaabf02-a9ae-4486-89fa-3502f470e877">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_1e1fe859-cb1b-4253-92dd-f16babd19d95">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_6820745a-ca15-448a-91b1-613ae6e7d5d2">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_d02286d5-fac0-43cb-beb6-52c221013833">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      id="F_cb45f02b-7eaf-4fef-9993-1b6a6199eaba">&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;50,100,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_d34f81a7-0d19-4ed4-8863-61f488260e9b"
      decimals="0"
      id="F_d021a4b1-a2ed-4606-8bab-493767fceb50"
      unitRef="U_USD">50100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
