<?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_0dafae5f-79ae-4138-9255-bbc13f565f64">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_7d20345a-08a4-4e17-9bb3-a9fa326f2b65">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_1a9f69fb-46d3-4424-ba14-fe0113ab631a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_15ac15a0-f75b-4ea7-ba38-6866069629e1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_1dc583b9-1a13-4825-b67a-641ba9d9ce3d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_65dac449-e0a8-48a4-97c6-848fdaaaa83a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_d0e38c47-5d0f-41ce-885e-112c6e776747">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_6855dd28-7319-492d-8789-32dfffae3df2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_d2061de7-cdab-4179-aee0-80495e089f36">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_76b6b8db-9246-4e1d-9848-3ad6184f7eba">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0dafae5f-79ae-4138-9255-bbc13f565f64"
      id="F_f160f5eb-0424-4d30-83a9-fcc0575e9905">&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;3,760,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_0dafae5f-79ae-4138-9255-bbc13f565f64"
      decimals="0"
      id="F_b0f48794-ef88-42e7-b837-9f6f4c962df0"
      unitRef="U_USD">3760000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
