<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_ed21a397-26ff-4774-aca4-fef79c0122b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_08a5ef4c-2e0e-4486-b379-c88c2f3eefa4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_42a97260-e3df-49db-82c9-627fffc8f5e9">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_97479a0e-9f00-42ab-bf33-27c671e05433">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_048505aa-b1dc-47cd-8ecf-be7ccf995f8b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_77aef82c-1ca8-4ea1-a63f-cc0885dbc5ff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_b2fa7491-95c6-49ff-a5af-15a4de5d393f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_1b80f967-8f4f-476e-abde-46f456df7cab">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_c0d7fe17-d56c-42a9-ba3a-cce3bebb6e62">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_ac2db1aa-97e8-47b5-874c-516115563f05">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ed21a397-26ff-4774-aca4-fef79c0122b5"
      id="F_556c198d-dff8-495d-aef4-5495640d6667">&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;500,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_ed21a397-26ff-4774-aca4-fef79c0122b5"
      decimals="-3"
      id="F_b0702781-632e-4b6e-b42e-309112ec6abc"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
