<?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_f3d19c51-07d1-4bac-8cb4-722e28e069ea">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_daa4f09a-2e4f-466c-b342-6aef7169d4c7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_501c3407-c83d-48bd-92bf-7878095ea49c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_b8322a12-17ad-49bc-b0a6-f28ee4f5abef">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_37b780a4-38da-4fc8-842b-46771fc6f2a4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_4a82020d-e937-4076-8233-b552758eda68">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_cd0514cd-e683-4297-8bb3-16b921977cbb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_d433bdd9-f960-4031-a1eb-492611a9f640">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_e01c4fa3-6f08-4e3d-8e2c-86d1b529e732">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_d931ebdd-9d4a-4585-aba5-11e86890c878">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      id="F_63f1b5f6-d7c5-40ac-bd34-20931651334c">&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;6,055,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_f3d19c51-07d1-4bac-8cb4-722e28e069ea"
      decimals="-3"
      id="F_2ec64d3a-5d17-434a-93f0-04df13fc7cde"
      unitRef="U_USD">6055000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
