<?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_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_ebe790d0-3ce9-416d-bc0e-3d6dadc9891e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_b8e1a477-92a6-45dc-9550-4f62605a0578">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_4dc02b4c-613e-476e-adb7-33b5a3314420">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_f88704c8-1234-4bb4-adc4-044d0d3ead28">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_d1afd4ea-ce6a-4b68-8fef-48043dabbe2a">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_8d3c0563-498a-4e19-8925-b8b05fed2568">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_1f10bf28-6429-459d-8be9-0b482acad7f0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_5442e80c-73e2-49d0-91d2-f9706fe18eb8">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_141842f9-93d9-4b63-a7c8-658a3f72a616">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      id="F_1a95ed66-ccd9-4f51-b611-fc429201289d">&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 $&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;2,637,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_ccf1a8b7-9287-41b2-a50e-79dc2f1ef999"
      decimals="-3"
      id="F_5943eeab-e85b-4c45-9e9b-a8cd3bc67e46"
      unitRef="U_USD">2637000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
