<?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_f66145b7-7597-47fb-bb36-4364bc8d9b5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_4c761b59-b63b-4e31-8456-110c231f972d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_6d51f98e-d2de-4bb9-bd01-520288481fa2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_cefa5eda-db96-4147-ac07-47c13f1b814e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_2b11d453-c8c0-4e1f-8202-f5e64c36eee1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_92ef0dd3-a999-49ff-9a96-ab189d7e262e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_ec23f86f-bae9-4f32-8c4c-e4da721ee630">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_39a8813a-7df4-4e7a-97a1-4c9873e78c69">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_6b5a05bd-844c-4f01-9cd7-6409c129f44a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_206ae260-48cd-4468-ad0a-bb69bc6187a5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      id="F_8e2647b1-6822-4cc5-8671-9195a4f8ee89">&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;695,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_f66145b7-7597-47fb-bb36-4364bc8d9b5d"
      decimals="-3"
      id="F_cce4f8cc-05c3-4934-8500-8a2f38004662"
      unitRef="U_USD">695000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
