<?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_cf93fe1b-7052-4745-a5ae-aa4e395905da">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_dce653fc-1b8b-47ff-bbce-7332a140cc36">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_2cc63fba-4459-4d23-9ded-47a0261f561a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_a57c3564-91c1-4c84-8c1f-35ccc96854f5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_7c419ed0-5659-438c-806d-f7de4359273c">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_41e20587-d253-4636-999f-1d93605361f4">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_fd2708fa-08cd-45b6-84ad-0503da82f48e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_a0adb82c-09c9-4d49-b52a-b7fe5ab129c6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_e9b1824a-bd2a-45f7-858b-d3e6e29f3fbb">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_61541efb-5e86-49ca-9196-71226bb08849">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      id="F_20a68eda-bac8-4baf-9fd1-fd0e7ee8ba9f">&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;3,201,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_cf93fe1b-7052-4745-a5ae-aa4e395905da"
      decimals="-3"
      id="F_1288fa10-f35e-4488-b31e-b2b340a28e71"
      unitRef="U_USD">3201000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
