<?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_be496edd-09b4-4ed1-8b93-60e64b1350dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-27</startDate>
            <endDate>2026-11-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_650a7eea-b1c7-4c4e-822b-6e218784ed01">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_0d3cd3a3-9aae-4085-bd00-6a0dc47c8979">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_98a33a37-14c5-4766-afef-83e8fb45021f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_cd423ca8-0888-489d-a704-4eee129539db">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_c36dab3d-75c7-4b0a-b716-f12b07022933">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_77f86f2f-7ed7-484b-9cd8-c4006b6adc8f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_c582bac2-575f-4636-8814-664a8190db71">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_8b89b582-5e74-4d34-be41-ec900c079b8e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_9572b3fe-2fad-4f29-9bb2-faa2d7b2ccb2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      id="F_49aa6b1e-3b36-443d-a3e4-1fcb83126be9">&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,839,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_be496edd-09b4-4ed1-8b93-60e64b1350dd"
      decimals="-3"
      id="F_3c5d7db6-0b41-455b-8614-2fee6d4fa1a1"
      unitRef="U_USD">3839000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
