<?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_e4008c01-cd88-493d-aeb5-8fdc263dbfb9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_7e5a3c18-4d8e-4b5d-8bf2-bacc6265b3b1">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_4841af72-afc6-46f7-bbc1-ee619787c7a9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_c5566237-d642-473b-b639-bbd3175ae922">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_ab7652ed-4a1d-4937-abfb-0996d4b1b67b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_2ecdda51-e220-4f0b-a877-cc20c98475e9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_165f0d72-f627-4c99-aa51-3c4ac3117dd9">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_94cc56a3-3f19-4fb0-9533-ddf63f035d07">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_b25c1e44-393e-4a9a-9a15-830a2757fa8e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_3de763f5-58ee-4473-a09d-048f072637b8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      id="F_0914bc4f-bf6d-45b4-b922-29774e13a30f">&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;660,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_e4008c01-cd88-493d-aeb5-8fdc263dbfb9"
      decimals="-3"
      id="F_2b043b92-51cb-48a4-bba4-75d4e8ecfed0"
      unitRef="U_USD">660000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
