<?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_1f8990ac-e9ea-469d-bec0-4464effbcdb2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_058cdce9-e8ba-4e72-b866-cf55aa60892a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_937e0943-e95b-4ac8-b44c-576763f66a3d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_50599879-09c6-4941-a594-605a43e4a604">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_4d0ee804-6c46-4c35-8ff5-7daaabf0171c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_bebf179d-4266-43d3-8779-f3b7cc872212">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_522187bb-7c5e-49bc-9c8e-96974a1cc3fb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_98c8dadc-41f6-4321-aac4-73df1429862e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_e172be12-91ce-4c15-9990-3ce83f572774">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_c0577e63-5a1f-4baa-896a-c2b9e7d6998f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      id="F_837c113c-e238-47e7-aa85-498f1d1effee">&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;3,645,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_1f8990ac-e9ea-469d-bec0-4464effbcdb2"
      decimals="-3"
      id="F_24c19483-cd1d-4f9d-8738-60aad4fb255c"
      unitRef="U_USD">3645000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
