<?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_4a35b956-180c-49e2-b2b8-f8f1d1335c5c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_9c8af7db-8907-45c9-8cdf-140c61421797">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_c5e337b9-6744-47d6-b191-2966e2c3db04">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_33d252fd-d683-4889-a2b2-8a9537201260">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_652958ca-8855-4872-b1b6-769cab117d8e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_2aa156b2-5bf6-4b2a-8e21-e37bf3de4142">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_fa421753-4b4b-4c0e-bd95-a51ca88ee641">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_f626fc40-84a3-4f27-b421-988e9ee19295">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_a7dc5718-03bc-4889-94a6-23e1c6902cd8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_824dd6fc-5545-4e03-88a0-d4222207bb3e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      id="F_0fa5a0b9-6a9e-454e-a4fb-c09a403ffcac">&lt;p style="tab-size:26.66px;font-size:12pt;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;4,594,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_4a35b956-180c-49e2-b2b8-f8f1d1335c5c"
      decimals="-3"
      id="F_16db1ddc-f404-45bd-af3a-40d7ab9faad5"
      unitRef="U_USD">4594000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
