<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_94e51ebd-ca88-4bfd-812f-42966fe0af78">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_96a82172-1611-4cc8-97dc-7f93b790ba22">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_8056014a-63e2-4b3d-9a37-5f5d28f7b8ab">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_4e4ebbb5-ba1e-449b-a9c9-222b38c2bd6d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_7228e824-5235-417a-a4ec-d913026228e4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_44af4a5d-6331-4013-a4c2-0824e1e8284a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_a9a99ed4-c340-4393-bae4-f892c82be016">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_f72ea10a-257b-4bb6-95ca-876eff0a9b3a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_81d4eb36-a2cf-4dbd-b30c-8c3d969e7969">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_c482fc38-f920-4154-8c81-e0a3c33e4960">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      id="F_89545cd2-0b5f-4553-abe8-a97a1e620b2a">&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;444,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_94e51ebd-ca88-4bfd-812f-42966fe0af78"
      decimals="0"
      id="F_7d19508e-bd45-49b9-a5f5-a42ecd0b540d"
      unitRef="U_USD">444000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
