<?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_ff4b8250-6860-4402-a41c-4d44150e560e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_6d9576c8-3f60-4f32-a27c-2ba56c916322">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_50f9fbd3-9416-4750-8ec5-f03ba16129af">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_de88e3cc-73c7-4473-a92c-afe7d8e2fa26">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_a81b8a70-6197-4f48-87f6-9b8d33b15082">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_8f375d16-92f7-4ccf-9b67-a8dd5aa900bd">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_97d42345-8e90-4e2e-aaf7-e0252623c51f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_2d41a8ee-2729-4fce-bc67-fceacaadf127">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_7c496dcc-f5d4-4227-a2d1-0b30d472e377">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_367207f3-d6bf-4448-9b53-64709f99d851">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ff4b8250-6860-4402-a41c-4d44150e560e"
      id="F_f2014849-d59f-4248-8bf4-02c06f9be059">&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;733,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_ff4b8250-6860-4402-a41c-4d44150e560e"
      decimals="0"
      id="F_3c93f748-9e59-4b3a-8793-1f1c39f6975d"
      unitRef="U_USD">733000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
