<?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_cb51aa4d-600d-4248-acfa-29f94c224d75">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_b5476573-45ad-4f74-8742-951b151fa0e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_200f143f-be55-438b-b1b7-d2a9693ed3e5">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_878c62f1-cb11-4858-a81a-9ad176f8e48b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_7c4a082e-f563-422e-9443-ca8be161fcdc">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_e24f664c-3f71-4f8a-a488-eb0d91697793">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_e8570e37-b167-4479-99db-46eccbbead4a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_ff103044-8879-4661-85b7-75dd35c1b508">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_d6abda94-c96c-40af-bc69-54eb66666023">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_39e5870f-47d9-40e0-8553-bb38798fdfff">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cb51aa4d-600d-4248-acfa-29f94c224d75"
      id="F_af9c8b41-2fec-49f7-b096-b30d3e9d496f">&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;2,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_cb51aa4d-600d-4248-acfa-29f94c224d75"
      decimals="-3"
      id="F_d05777cf-4cf6-43ec-99f2-6843ad8346f7"
      unitRef="U_USD">2000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
