<?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_036d3942-6b99-4e5a-a2fd-22d2939f1673">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_398e2beb-69a1-4e86-915f-9a1d6728b152">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_dd83bd09-a3c8-45c3-9dd5-a17389d06cd1">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_2b77adf8-c44c-4a65-b380-24365564c6fa">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_461216e5-78e8-4892-b2a0-044e51b778a5">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_8f1bcfcd-bc3e-4381-add5-d5c8e93e66dc">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_af1f2d03-bd56-4335-9204-0707aca2d2fd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_46f24073-43e1-45d5-a908-22fbd923d614">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_46dbb06a-f035-404e-bd2f-122e7e7ca42b">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_ceb89430-49ad-46d7-9238-f18809846223">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      id="F_062f3226-db07-405f-8788-ea36066b63d0">&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;810,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_036d3942-6b99-4e5a-a2fd-22d2939f1673"
      decimals="-3"
      id="F_27fb91a9-9a51-4071-be5b-176b3e429295"
      unitRef="U_USD">810000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
