<?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_ff965853-8968-413f-900f-75d92b9891c9">
        <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:CombinedProspectusTableNa
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_69b50d0e-4406-4ecc-a2cf-a60eff1e6926">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_80a3d0d0-e011-46f6-b9da-904acac32527">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_827bc1c9-a6d2-42e6-8909-2235f7f3f6f9">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_9cffdfac-216e-4d92-af35-12417505b66e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_5fcce77c-9daf-43a7-beab-c4f0b0f1cde4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_8057baca-b2a7-4cba-94d5-47aa97082526">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_3a7c41ee-8b00-4d4f-bf47-37b3901e6788">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_d2cd5af1-ac69-47cc-a3ad-86742dcc619e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_5025135d-321b-46c5-952d-5977a64f2ba5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ff965853-8968-413f-900f-75d92b9891c9"
      id="F_cef881b7-d311-4741-8e20-d91c0fe224bf">&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;959,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_ff965853-8968-413f-900f-75d92b9891c9"
      decimals="-3"
      id="F_2c9c4379-7174-42fa-a8af-3d3fd24e8f77"
      unitRef="U_USD">959000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
