<?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_373017ad-5158-41a2-9265-df6e9214df72">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-18</startDate>
            <endDate>2025-11-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_e5644905-5d1e-45ae-915e-a579daecbc95">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_b3e017ff-d71b-464c-a84c-b0c31a471ff6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_cd75bda0-a6ea-4bf1-b42f-d1402f962cb1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_1eb3994b-493f-4f03-b9d3-5550a8eb17c9">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_0024687b-4437-442e-8085-9df4bca896d5">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_4a1bdb10-f0b4-4500-827c-b71df7ba1238">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_eeb4f167-f553-42cf-a966-2b2d18988f60">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_bfb76038-083b-448a-9964-8cd31841ad96">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_1f809117-17f8-4457-8374-74fc4d94a0ec">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_373017ad-5158-41a2-9265-df6e9214df72"
      id="F_4a9a575d-3535-41cb-9731-d3985f174120">&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;12,597,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_373017ad-5158-41a2-9265-df6e9214df72"
      decimals="0"
      id="F_15642401-bb08-4d96-88da-51476f0d4150"
      unitRef="U_USD">12597000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
