<?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_b95e410e-11f0-4e0f-865b-bd7c0889f75b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_653fabbe-b0d7-4b60-a40a-cfd9524916c0">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_0eca4dbc-99d0-4b57-8e02-f1c6928d70fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_9678354f-671f-46ca-a222-f39fe2f0bc5c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_dc186e7e-24be-4166-a514-501c94e243e6">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_5d6b9739-cbc4-4b18-8ba3-b86104d5b7f0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_b96ff3a3-cc93-40ff-bac2-2f91b8ea6a7f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_d8e2cbd3-688e-4409-997f-79910de5c61b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_30bd92be-267a-4da0-bbba-5912e2f39976">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_02e3f440-80fb-48f9-94e3-a8403c62711a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      id="F_cfa30c04-9db5-4e05-8aba-004fc861a850">&lt;p style="tab-size:26.66px;font-size:12pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;1,949,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_b95e410e-11f0-4e0f-865b-bd7c0889f75b"
      decimals="-3"
      id="F_d4ce3ae0-fcc1-41a4-a1aa-22f3c5e4ed7d"
      unitRef="U_USD">1949000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
